var vm = new Vue({
	el: '#rrapp',
	data: {
		//		方向
		directiones: [],
		directionBeSelected: 'sdasdasdasas',
		//		职业
		occupation: [],
		occupationBeSelected: '',
		//		课程
		course: [],
		courseBeSelected: '1111'
	},
	mounted() {
		this.getDirection();
	},
	methods: {
		getDirection: function() {
			var data = {
				parentId: 0,
			}
			$.ajax({
				type: "POST",
				url: baseURL + "knowledge/getDirection",
				contentType: "application/json",
				data: JSON.stringify(data),
				success: function(r) {
					vm.directiones = r.direction
					console.log(vm.directiones)
				}
			});
		},
	}
});

//	//	双击事件
//	network.on("doubleClick", function(params) {
//		//		params.event = "[original event]";
//		//		document.getElementById('eventSpan').innerHTML = '<h2>doubleClick event:</h2>' + JSON.stringify(params, null, 4);
//	});
//	// 右键
//	network.on("oncontext", function(params) {
//		//		params.event = "[original event]";
//		//		document.getElementById('eventSpan').innerHTML = '<h2>oncontext (right click) event:</h2>' + JSON.stringify(params, null, 4);
//	});
//	// 拖动节点开始触法事件
//	network.on("dragStart", function(params) {
//		// There's no point in displaying this event on screen, it gets immediately overwritten
//		//		params.event = "[original event]";
//		//		console.log('dragStart Event:', params);
//		//		console.log('dragStart event, getNodeAt returns: ' + this.getNodeAt(params.pointer.DOM));
//	});
//	// 拖动节点过程中触法事件
//	network.on("dragging", function(params) {
//		//		params.event = "[original event]";
//		//		document.getElementById('eventSpan').innerHTML = '<h2>dragging event:</h2>' + JSON.stringify(params, null, 4);
//	});
//	// 拖动节点结束触法事件
//	network.on("dragEnd", function(params) {
//		//		params.event = "[original event]";
//		//		document.getElementById('eventSpan').innerHTML = '<h2>dragEnd event:</h2>' + JSON.stringify(params, null, 4);
//		//		console.log('dragEnd Event:', params);
//		//		console.log('dragEnd event, getNodeAt returns: ' + this.getNodeAt(params.pointer.DOM));
//	});
//	//	缩放
//	network.on("zoom", function(params) {
//		//		document.getElementById('eventSpan').innerHTML = '<h2>zoom event:</h2>' + JSON.stringify(params, null, 4);
//	});
//	//	展示弹窗
//	network.on("showPopup", function(params) {
//		//		document.getElementById('eventSpan').innerHTML = '<h2>showPopup event: </h2>' + JSON.stringify(params, null, 4);
//	});
//	//	隐藏弹窗
//	network.on("hidePopup", function() {
//		//		console.log('hidePopup Event');
//	});
//	network.on("select", function(params) {
//		console.log('select Event:', params);
//	});
//	network.on("selectNode", function(params) {
//		console.log('selectNode Event:', params);
//	});
//	network.on("selectEdge", function(params) {
//		console.log('selectEdge Event:', params);
//	});
//	network.on("deselectNode", function(params) {
//		console.log('deselectNode Event:', params);
//	});
//	network.on("deselectEdge", function(params) {
//		console.log('deselectEdge Event:', params);
//	});
//	network.on("hoverNode", function(params) {
//		console.log('hoverNode Event:', params);
//	});
//	network.on("hoverEdge", function(params) {
//		console.log('hoverEdge Event:', params);
//	});
//	network.on("blurNode", function(params) {
//		console.log('blurNode Event:', params);
//	});
//	network.on("blurEdge", function(params) {
//		console.log('blurEdge Event:', params);
//	});